<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Editing Manutencao</title>
            <link rel="stylesheet" type="text/css" href="/globalimage2/faces/jsfcrud.css" /><%@ include file="/WEB-INF/jspf/AjaxScripts.jspf" %><script type="text/javascript" src="/globalimage2/faces/jsfcrud.js"></script>
        </head>
        <body>
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h1>Editing Manutencao</h1>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="ManutencaoId:"/>
                    <h:outputText value="#{manutencao.manutencao.manutencaoId}" title="ManutencaoId" />
                    <h:outputText value="Observacao:"/>
                    <h:inputTextarea rows="4" cols="30" id="observacao" value="#{manutencao.manutencao.observacao}" title="Observacao" />
                    <h:outputText value="DataChamado (MM/dd/yyyy):"/>
                    <h:inputText id="dataChamado" value="#{manutencao.manutencao.dataChamado}" title="DataChamado" required="true" requiredMessage="The dataChamado field is required." >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputText value="DataAtendimento (MM/dd/yyyy):"/>
                    <h:inputText id="dataAtendimento" value="#{manutencao.manutencao.dataAtendimento}" title="DataAtendimento" required="true" requiredMessage="The dataAtendimento field is required." >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputText value="DataFechamento (MM/dd/yyyy):"/>
                    <h:inputText id="dataFechamento" value="#{manutencao.manutencao.dataFechamento}" title="DataFechamento" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputText value="FuncionarioCollection:"/>
                    <h:selectManyListbox id="funcionarioCollection" value="#{manutencao.manutencao.jsfcrud_transform[jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.collectionToArray][jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.arrayToList].funcionarioCollection}" title="FuncionarioCollection" size="6" converter="#{funcionario.converter}" >
                        <f:selectItems value="#{funcionario.funcionarioItemsAvailableSelectMany}"/>
                    </h:selectManyListbox>
                    <h:outputText value="EntradaSaidaCollection:"/>
                    <h:selectManyListbox id="entradaSaidaCollection" value="#{manutencao.manutencao.jsfcrud_transform[jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.collectionToArray][jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.arrayToList].entradaSaidaCollection}" title="EntradaSaidaCollection" size="6" converter="#{entradaSaida.converter}" >
                        <f:selectItems value="#{entradaSaida.entradaSaidaItemsAvailableSelectMany}"/>
                    </h:selectManyListbox>
                    <h:outputText value="ClienteId:"/>
                    <h:selectOneMenu id="clienteId" value="#{manutencao.manutencao.clienteId}" title="ClienteId" required="true" requiredMessage="The clienteId field is required." >
                        <f:selectItems value="#{usuario.usuarioItemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputText value="ProdutoManutencaoCollection:"/>
                    <h:outputText escape="false" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getCollectionAsString'][manutencao.manutencao.produtoManutencaoCollection == null ? jsfcrud_null : manutencao.manutencao.produtoManutencaoCollection].jsfcrud_invoke}" title="ProdutoManutencaoCollection" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{manutencao.edit}" value="Save">
                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                </h:commandLink>
                <br />
                <br />
                <h:commandLink action="#{manutencao.detailSetup}" value="Exibir" immediate="true">
                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                </h:commandLink>
                <br />
                <h:commandLink action="#{manutencao.listSetup}" value="Exibir todos" immediate="true"/>
                <br />
                <h:commandLink value="Index" action="welcome" immediate="true" />
            </h:form>
        </body>
    </html>
</f:view>
